package com.martini.satoken01.enums;

/**
 * 限制类型
 *
 * @author martini at 2021/12/17 19:22
 */
public enum LimitType {

    /**
     * IP限制
     */
    IP(0, "IP限制"),

    /**
     * 账号限制
     */
    ACCOUNT(1, "账号限制");

    /**
     * 类型
     */
    private int code;

    /**
     * 提示信息
     */
    private String msg;

    LimitType(int code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    public int getCode() {
        return code;
    }

    public String getMsg() {
        return msg;
    }
}
